package com.appkubes.fintech.restful.application.rent.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: wuzhijian
 * @Date: 2019/12/29
 * @Description:
 * 租赁下单接口
 */
@Data
public class RentRequest {

    @ApiModelProperty("订单key")
    @NotBlank(message = "订单key不能为空!")
    private String orderKey;

    @ApiModelProperty("商品名称（数量+规格+名称）")
    @NotBlank(message = "商品名称不能为空!")
    private String goodsName;

    @ApiModelProperty("用户key")
    @NotBlank(message = "用户key不能为空!")
    private String userKey;


    @ApiModelProperty("分期数")
    @NotNull(message = "分期数不能为空!")
    private Integer periods;

    @ApiModelProperty("周期长度")
    private Integer periodLong;

    @ApiModelProperty("周期单位 1天2周3月")
    private Integer periodType;


    @ApiModelProperty("商品金额单位分")
    @NotNull(message = "商品金额不能为空!")
    private Integer goodsAmout;

    @ApiModelProperty("首付金额单位分")
    @NotNull(message = "首付金额不能为空!")
    private Integer firstPayAmout;

    @ApiModelProperty("买断金额单位分")
    @NotNull(message = "买断金额不能为空!")
    private Integer buyoutAmout;

    @ApiModelProperty("租赁类型 固定值")
    @NotNull(message = "租赁类型不能为空!")
    private Integer rentType;






}
